
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type StoreBargainUserHelpRequest struct {

	Uid string `json:"uid" form:"uid"`

	BargainId string `json:"bargain_id" form:"bargain_id"`

	BargainUserId string `json:"bargain_user_id" form:"bargain_user_id"`

	Price string `json:"price" form:"price"`

	AddTime string `json:"add_time" form:"add_time"`

	Type string `json:"type" form:"type"`

}

func (r *StoreBargainUserHelpRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *StoreBargainUserHelpRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"uid": "required",

		"bargain_id": "required",

		"bargain_user_id": "required",

		"price": "required",

		"add_time": "required",

		"type": "required",

	}
}

func (r *StoreBargainUserHelpRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreBargainUserHelpRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreBargainUserHelpRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
